<template>
  <div class="zlxg-page">
    <div class="primary-header clearfix flex flex-row align-center mt20">
      <div class="line" />
      <span class="font18 ml10 flex-auto">事件评估</span>
    </div>
    <div class="table-content">
      <el-descriptions class="margin-top" :column="2" border>
        <el-descriptions-item :content-style="contentStyle" :label-style="labelStyle">
          <template slot="label">
            事件类型
          </template>
          {{ formData.sjpg_sjlx }}
        </el-descriptions-item>
        <el-descriptions-item :content-style="contentStyle" :label-style="labelStyle">
          <template slot="label">
            事件分类
          </template>
          {{ formData.sjpg_sjfl }}
        </el-descriptions-item>
        <el-descriptions-item :content-style="contentStyle" :label-style="labelStyle">
          <template slot="label">
            患者损害结果
          </template>
          {{ formData.sjpg_shjg_text }}
        </el-descriptions-item>
        <el-descriptions-item :content-style="contentStyle" :label-style="labelStyle">
          <template slot="label">
            事件再发生频率
          </template>
          {{ formData.sjpg_zfspl_text }}
        </el-descriptions-item>
        <el-descriptions-item :span="2" :content-style="contentStyle" :label-style="labelStyle">
          <template slot="label">
            SAC评分
          </template>
          {{ formData.sjpg_sac }} 分
        </el-descriptions-item>
      </el-descriptions>
      <div class="primary-header clearfix flex flex-row align-center mt20">
        <div class="line" />
        <span class="font18 ml10 flex-auto">原因分析</span><span v-if="name" class="font18 ml10 flex-auto">{{ name }}</span>
      </div>
      <el-descriptions class="margin-top mt10" :column="2" border>
        <el-descriptions-item :content-style="contentStyle" :label-style="labelStyle" :span="2">
          <template slot="label">
            与患者因素相关
          </template>
          {{ formData.cz_yhzysyg | arrayString }}
        </el-descriptions-item>
        <el-descriptions-item :content-style="contentStyle" :label-style="labelStyle" :span="2">
          <template slot="label">
            与工作人员因素相关
          </template>
          {{ formData.cz_ygzryysyg | arrayString }}
        </el-descriptions-item>
        <el-descriptions-item :content-style="contentStyle" :label-style="labelStyle" :span="2">
          <template slot="label">
            与管理因素相关
          </template>
          {{ formData.cz_yglysyg | arrayString }}
        </el-descriptions-item>
        <el-descriptions-item :content-style="contentStyle" :label-style="labelStyle" :span="2">
          <template slot="label">
            与环境因素相关
          </template>
          {{ formData.cz_yhjysyg | arrayString }}{{ formData.cz_ywpysyg_input1 }}{{ formData.cz_ywpysyg_input2 }}
        </el-descriptions-item>
        <el-descriptions-item :span="2">
          <template slot="label">
            与物品因素相关
          </template>
          {{ formData.cz_ywpysyg | arrayString }}{{ formData.cz_ywpysyg_input1 }}{{ formData.cz_ywpysyg_input2 }}
        </el-descriptions-item>
      </el-descriptions>
      <!-- <div class="primary-header clearfix flex flex-row align-center mt20">
        <div class="line"></div>
        <span class="font18 ml10 flex-auto">处理意见</span>
      </div>
      <el-descriptions class="margin-top" :column="2" border>
        <el-descriptions-item :contentStyle='contentStyle' :labelStyle='labelStyle'>
          <template slot="label">
            处理意见
          </template>
          {{formData.cz_clyj}}
        </el-descriptions-item>
        </el-descriptions> -->
    </div>
  </div>
</template>
<script>
export default {
  name: 'Baqsjcz',
  filters: {
    arrayString(val) {
      if (val && val.length > 0) {
        return val.join(',')
      } else {
        return ''
      }
    }
  },
  props: ['formData', 'createTime', 'name'],
  data() {
    return {
      contentStyle: {
        'text-align': 'left'
      },
      // label样式
      labelStyle: { 'width': '170px' }
    }
  },

  computed: {

  },
  mounted() {

  }
}

</script>
<style lang="scss" scoped>
</style>
